from django.contrib import admin
from booksite.models import HeroInfo, BookInfo

# Register your models here.
class BookInfoAdmin(admin.ModelAdmin):
    list_display = ["id", "btitle", "bpub_date"]

class HeroInfoAdmin(admin.ModelAdmin):
    list_display = ["id", "hname", "hgender", "hcomment", "hbook"]

admin.site.register(BookInfo, BookInfoAdmin)
admin.site.register(HeroInfo, HeroInfoAdmin)